$OpenBSD: patch-lib_puppet_util_run_mode_rb,v 1.2 2016/04/28 13:05:31 jasper Exp $
--- lib/puppet/util/run_mode.rb.orig	Sat Apr 23 00:15:56 2016
+++ lib/puppet/util/run_mode.rb	Thu Apr 28 15:04:10 2016
@@ -59,15 +59,15 @@ module Puppet
 
     class UnixRunMode < RunMode
       def conf_dir
-        which_dir("/etc/puppetlabs/puppet", "~/.puppetlabs/etc/puppet")
+        which_dir("${SYSCONFDIR}/puppetlabs/puppet", "~/.puppetlabs/etc/puppet")
       end
 
       def code_dir
-        which_dir("/etc/puppetlabs/code", "~/.puppetlabs/etc/code")
+        which_dir("${SYSCONFDIR}/puppetlabs/code", "~/.puppetlabs/etc/code")
       end
 
       def var_dir
-        which_dir("/opt/puppetlabs/puppet/cache", "~/.puppetlabs/opt/puppet/cache")
+        which_dir("/var/puppetlabs/puppet/cache", "~/.puppetlabs/opt/puppet/cache")
       end
 
       def run_dir
